package com.fantasy.easy.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @TableName biz_data
 */
@TableName(value ="biz_data")
public class BizData implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "marriage")
    private String marriage;

    /**
     * 
     */
    @TableField(value = "job")
    private String job;

    /**
     * 
     */
    @TableField(value = "rank")
    private String rank;

    /**
     * 
     */
    @TableField(value = "academic")
    private String academic;

    /**
     * 
     */
    @TableField(value = "population")
    private Integer population;

    /**
     * 
     */
    @TableField(value = "workTime")
    private Integer worktime;

    /**
     * 
     */
    @TableField(value = "allowance")
    private BigDecimal allowance;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getMarriage() {
        return marriage;
    }

    /**
     * 
     */
    public void setMarriage(String marriage) {
        this.marriage = marriage;
    }

    /**
     * 
     */
    public String getJob() {
        return job;
    }

    /**
     * 
     */
    public void setJob(String job) {
        this.job = job;
    }

    /**
     * 
     */
    public String getRank() {
        return rank;
    }

    /**
     * 
     */
    public void setRank(String rank) {
        this.rank = rank;
    }

    /**
     * 
     */
    public String getAcademic() {
        return academic;
    }

    /**
     * 
     */
    public void setAcademic(String academic) {
        this.academic = academic;
    }

    /**
     * 
     */
    public Integer getPopulation() {
        return population;
    }

    /**
     * 
     */
    public void setPopulation(Integer population) {
        this.population = population;
    }

    /**
     * 
     */
    public Integer getWorktime() {
        return worktime;
    }

    /**
     * 
     */
    public void setWorktime(Integer worktime) {
        this.worktime = worktime;
    }

    /**
     * 
     */
    public BigDecimal getAllowance() {
        return allowance;
    }

    /**
     * 
     */
    public void setAllowance(BigDecimal allowance) {
        this.allowance = allowance;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BizData other = (BizData) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMarriage() == null ? other.getMarriage() == null : this.getMarriage().equals(other.getMarriage()))
            && (this.getJob() == null ? other.getJob() == null : this.getJob().equals(other.getJob()))
            && (this.getRank() == null ? other.getRank() == null : this.getRank().equals(other.getRank()))
            && (this.getAcademic() == null ? other.getAcademic() == null : this.getAcademic().equals(other.getAcademic()))
            && (this.getPopulation() == null ? other.getPopulation() == null : this.getPopulation().equals(other.getPopulation()))
            && (this.getWorktime() == null ? other.getWorktime() == null : this.getWorktime().equals(other.getWorktime()))
            && (this.getAllowance() == null ? other.getAllowance() == null : this.getAllowance().equals(other.getAllowance()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMarriage() == null) ? 0 : getMarriage().hashCode());
        result = prime * result + ((getJob() == null) ? 0 : getJob().hashCode());
        result = prime * result + ((getRank() == null) ? 0 : getRank().hashCode());
        result = prime * result + ((getAcademic() == null) ? 0 : getAcademic().hashCode());
        result = prime * result + ((getPopulation() == null) ? 0 : getPopulation().hashCode());
        result = prime * result + ((getWorktime() == null) ? 0 : getWorktime().hashCode());
        result = prime * result + ((getAllowance() == null) ? 0 : getAllowance().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", marriage=").append(marriage);
        sb.append(", job=").append(job);
        sb.append(", rank=").append(rank);
        sb.append(", academic=").append(academic);
        sb.append(", population=").append(population);
        sb.append(", worktime=").append(worktime);
        sb.append(", allowance=").append(allowance);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}